<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        let obj={
            name:'仙女',
            age:18,
            gender:'female'
        }
        //法一：
        let result=Object.entries(obj);
        let map=new Map(result);
        console.log(map);
    </script>
</head>
<body>
    
</body>
</html>